package com.example.base.net

/**
 * 常量池 ： 用来存放网址 常量  请求的参数
 */
class Const {
    //伴生对象--被{}括起来的都是单例的
    companion object{
        const val BASE_URL = "http://10.161.9.80:7456/"//基础路径

        const val LOGIN_CODE_URL = "/api/front/login/mobile"//验证码登录
        const val LOGIN_URL = "/api/front/login"//密码登录
        const val CODE_URL  = "/api/front/sendCode"//发送验证码
        const val USERINFO_URL = "/api/front/user"//个人信息
        const val PASSWORD_URL = "/api/front/register/reset"//修改密码
        const val INDEX_URL = "/api/front/index"//首页数据（轮播图，菜单、两个小标题、新闻）
        const val COUPON_URL = "/api/front/coupons"//优惠券列表
        const val GETCOUPON_URL = "/api/front/coupon/receive"//领取优惠券
        const val SEARCH_URL = "/api/front/products"//查询商品地址
        const val GOODS_INDEX_URL = "/api/front/index/product/{type}"//首页商品
        const val XQ_URL= "/api/front/product/detail/{id}"//详情界面
        const val YX_URL = "/api/front/product/good"//优选商品推荐

        const val SAVE_URL = "/api/front/cart/save"//添加购物车
        const val CAR_URL = "/api/front/cart/list"//购物车列表
        const val UPDATE_URL = "/api/front/cart/num"//修改购物车
        const val DELETE_URL = "/api/front/cart/delete"//删除购物车

        const val CATEGORY_URL = "/api/front/category"//商品分类
        const val CATEDETAIL_URL = "/api/front/products"//分类商品详情
        const val COMMENT_URL = "/api/front/reply/list/{id}"//获取评论列表

        const val PREORDER_URL = "/api/front/order/pre/order"//预下单
        const val GETPREORDER_URL = "/api/front/order/load/pre/{preOrderNo}"//加载预下单
        const val ORDER_URL = "/api/front/order/create"//创建订单
        const val PAY_URL = "/api/front/pay/payment"//支付订单



        //视频相关
        //const val BASE_URL = "http://10.161.9.80:7015/"//基础路径---视频的
        const val BANNER_VIDEO_URL= "/goodsHome/cmallBannerInfo"
        const val TYPE_VIDEO_URL = "/videotype/getSimpleType"
        const val VIDEO_URL = "/videosimple/getSimpleVideoByChannelId"
        const val SEARCH_VIDEO_URL = "/videosimple/getSimpleVideoByKeyword"
        const val LOVE_VIDEO_URL = "/agree/agree"
        const val NOLOVE_VIDEO_URL = "/agree/unagree"

        //智慧园区
        //const val BASE_URL = "http://10.161.9.80:2207/"
        const val NEWS_URL = "/api/news"//新闻列表
        const val NEWS_DETAIL_URL = "/api/news/{id}"//获取新闻详情
        const val NEWS_UPDATE_URL= "/api/news/{id}"//修改新闻






        const val SP_TOKEN = "token"//Sp中的token值
        const val RESULT_OK = 200//返回值

    }
}